package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.bizimpl.upmp.domain.*;


import cc.rengu.redp.bizimpl.upmp.vo.OperationResult;
import cc.rengu.redp.bizimpl.upmp.vo.TBNotifyInfoVO;
import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.domain.RedpResponse;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author System
 * @since 2022-04-16
 */
public interface TBNotifyInfoService extends IService<TBNotifyInfo> {
    IPage<TBNotifyInfo> findByPage(QueryRequest request, TBNotifyInfo info);
    List<TBNotifyInfo> findUserNotify(String userId);

    /**
     * 同法人行下根据角色名称查询数据
     * @param instId
     * @param roleName
     * @return
     */
    List<TBNotifyInfo> findByName(String instId, String roleName);

    TBNotifyInfo findById(String id);

    OperationResult createNotify(TBNotifyInfo role);

    void auditNotify(String notifyid, String notify);
    void deleteNotify(String[] roleIds) throws Exception;

    void updateNotify(TBNotifyInfo role) throws Exception;

    List<TBNotifyInfo> getAllNotify(TBNotifyInfo role);

    OperationResult saveData(TBNotifyInfo notify);

    RedpResponse uploadntc(MultipartFile excelFile) throws IOException, RedpException;
}
